package com.ashin;

import org.junit.Test;
import redis.clients.jedis.Jedis;

/**
 * @author Ashin
 */
public class TestRedisLua {

    @Test
    public void lua() {
        Jedis jedis = new Jedis("localhost");
        Object eval = jedis.eval("return tostring(3.14)");
        System.out.println(eval);
    }

    /**
     * 查询和增加
     */
    @Test
    public void queryAndIncrement() {
        Jedis jedis = new Jedis("localhost");
        Object eval = jedis.eval("return tostring(3.14)");
        System.out.println(eval);
    }
}
